package code;

import java.util.Scanner;

public class ChangeNumber_day13 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        String n_str =Integer.toString(n);
        char[] n_char = n_str.toCharArray();
        for (int i = 0; i<n_char.length; i++) {
                        if(Integer.valueOf(String.valueOf(n_char[i]))%2==0){
                n_char[i]='0';
            }else {
                n_char[i]='1';
            }
        }
        String n_str2 =new String(n_char);
        System.out.println(n_str2);
    }
}
